home *** CD-ROM | disk | FTP | other *** search
- : Name: Start Server File
- : Created By: The Uniform Server Development Team
- : Edited Last By: Olajide Olaolorun (empirex)
- : Comment: After start, go to apanel directly.
- : To Developers: Implemented %www%, and %apanel% :)
-
- @echo off
-
- rem use: start mysql console - to start mysql at server start and display console
- rem use: start mysql - to start mysql at server start
- rem use: start nomysql console - to display console
-
- diskw\home\admin\program\pskill.exe Apache.exe
- IF NOT ERRORLEVEL 1 goto started
- set Disk=%1
- IF "%Disk%"=="" set Disk=w
- rem create the disk
- subst %Disk%: "diskw"
- IF ERRORLEVEL 1 goto hint
- set apachepath=\usr\local\apache2\
- set apacheit=%Disk%:%apachepath%bin\Apache.exe -f %apachepath%conf\httpd.conf -d %apachepath%.
- set programit=%Disk%:\home\admin\program\
- set closeit=%programit%close.bat %Disk%
-
- %Disk%:
- cd \usr\local\php
- IF "%2"=="mysql" start \usr\local\mysql\bin\mysqld-opt.exe --defaults-file=/usr/local/mysql/bin/my-small.cnf
- CLS
- echo The server is working on the disk %Disk%:\ [http/127.0.0.1/apanel/]
- set www=\www\
- set apanel=\home\admin\www\
- start %apanel%\redirect.html
- IF "%3"=="console" goto console
- start %programit%uniserv.exe "%apacheit%" "%closeit%"
- goto end
- :console
- %apacheit%
- %closeit%
- goto end
- :hint
- CLS
- echo The disk %Disk% is busy. Use 'Disk Start.vbs' [disk letter]
- goto pause
- :started
- CLS
- echo ERROR!!!
- echo One of the instances of Apache server is started. Use Stop.bat
- :pause
- echo .
- pause
- :end